package com.cheung.shopkeeper.common.mail;

import javax.activation.DataSource;
import java.io.File;
import java.util.Date;
import java.util.List;

/**
 * 邮件内容的简单封装
 * @author bl02111
 *
 */
public class MailMessage {
	/**
	 * 主题
	 */
	private String subject;
	
	/**
	 * 内容
	 */
	private String content;
	
	/**
	 * 是否为HTML格式
	 */
	private Boolean isHtml;
	
	/**
	 * 附件名称
	 */
	private List<String> attachmentNames;
	
	/**
	 * 附件（以文件的形式添加）
	 */
	private List<File> attachements;
	
	/**
	 * 附件（以数据源的形式添加）
	 */
	private List<DataSource> dataSourceAttachs;
	
	/**
	 * 发送类型
	 */
	private String mimetype;
	
	/**
	 * 发送者
	 */
	private String[] senders;
			
	/**
	 * 接收者
	 */
	private String[] receivers;
	
	/**
	 * 抄送者
	 */
	private String[] copys;
	
	/**
	 * 发送时间
	 */
	private Date sendTime;

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public List<String> getAttachmentNames() {
		return attachmentNames;
	}

	public void setAttachmentNames(List<String> attachmentNames) {
		this.attachmentNames = attachmentNames;
	}

	public List<File> getAttachements() {
		return attachements;
	}

	public void setAttachements(List<File> attachements) {
		this.attachements = attachements;
	}

	public List<DataSource> getDataSourceAttachs() {
		return dataSourceAttachs;
	}

	public void setDataSourceAttachs(List<DataSource> dataSourceAttachs) {
		this.dataSourceAttachs = dataSourceAttachs;
	}

	public String getMimetype() {
		return mimetype;
	}

	public void setMimetype(String mimetype) {
		this.mimetype = mimetype;
	}

	public String[] getSenders() {
		return senders;
	}

	public void setSenders(String[] senders) {
		this.senders = senders;
	}

	public String[] getReceivers() {
		return receivers;
	}

	public void setReceivers(String[] receivers) {
		this.receivers = receivers;
	}

	public String[] getCopys() {
		return copys;
	}

	public void setCopys(String[] copys) {
		this.copys = copys;
	}

	public Boolean getIsHtml() {
		return isHtml;
	}

	public void setIsHtml(Boolean isHtml) {
		this.isHtml = isHtml;
	}

	public Date getSendTime() {
		return sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}


}
